<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

    <div >
        <table class="table table-bordered">
            <thead>
            <tr>
                <th class="text-center" width="15%">ID</th>
                <th class="text-center" width="15%">兑换人</th>
                <th class="text-center" width="20%">兑换时间</th>
                <th class="text-center" width="10%">是否发货</th>
                <th class="text-center" width="8%">操作</th>
            </tr>
        </table>
        <div class="J_V_tabContent table-xScrollWrap">
            <table class="table table-bordered table-hover table-xs-content">
                <tbody>
                <tr class="jqgfirstrow" role="row">
                    <th class="text-center" width="15%"></th>
                    <td class="text-center" width="15%"></td>
                    <th class="text-center" width="20%"></th>
                    <th class="text-center" width="10%"></th>
                    <th class="text-center" width="8%"></th>
                </tr>
                <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                    <td colspan="10" class="text-center">
                        <div class="noDataTipsBox">
                            <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                        </div>
                    </td>
                </tr>
                <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="entity : ${dataMap['list']}" th:attrappend="id='entity-open-'+${entity['id']}">
                    <td class="text-center" th:text="${entity['id']}">
                    </td>
                    <td class="text-center" th:text="${entity['cusUser']['nickname']}"> </td>
                    <td class="text-center" th:text="${entity['createTime']}"></td>
                    <td class="text-center">
                        <span th:if="!(${entity['shopType']} eq 'ENTITY')">-</span>
                        <span th:if="${entity['shopType']} eq 'ENTITY'" th:id="'statst-'+${entity['id']}" th:text="${entity['notDeliver']}== 0?'未发货':'已发货'"></span>
                    </td>
                    <td class="text-center" th:if="${entity['shopType']} eq 'ENTITY'">
                        <a href="javascript:void(0);" th:if="${entity['notDeliver']}==0" class="c-master fs14 ml5 delivery" th:attrappend="data-userid=${entity['userId']},data-id=${entity['id']},data-name=${entity['name']}" data-toggle="tooltip" data-placement="bottom" data-original-title="发货">
                            发货
                        </a>
                        <a th:if="${entity['notDeliver']}== 1" href="javascript:void(0);" class="c-master fs14 ml5"  data-toggle="tooltip" data-placement="bottom" th:attrappend="data-original-title=${entity['courierNumber']}">
                            快递单号
                        </a>
                        <a th:if="${entity['shopType']} eq 'ENTITY'" href="javascript:void(0);" class="c-master fs14 ml5 address"  data-toggle="tooltip" data-placement="bottom" th:attrappend="data-address=${entity['address']}">
                            收货地址
                        </a>
                    </td>
                    <td class="text-center" th:if="!(${entity['shopType']} eq 'ENTITY')">
                     -
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 分页，开始 -->
        <div data-th-replace="layout/adminPage"></div>
        <!-- 分页，结束 -->
    </div>
</html>